#include <bits/stdc++.h>
using namespace std;
int a[6] = {0, 5, 4, 3, 2, 1};
int main()
{
	freopen("a+b.in", "r", stdin);
	int n = 5;
	//freopen("a+b.out","w",stdout);
	for (int i = 1; i <= n; i++)
		for (int j = i; j >= 2; j--)
			if (a[j] < a[j - 1])
			{
				int t = a[j - 1];
				a[j - 1] = a[j];
				a[j] = t;
			}
	for (int i = 1; i <= n; i++)
	{
		cout << a[i] << " ";
	}

	return 0;
}
